package com.cy.config;

import com.cy.common.util.TransApi;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class BaiduConfig {
    @Value("${baidu.translate.appid}")
    private String addId ;
    @Value("${baidu.translate.secret}")
    private  String secret;

    @Bean
    public TransApi transApi(){
        return new TransApi(addId,secret);
    }
}
